package vue;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.awt.SystemColor;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.UIManager;
import javax.swing.border.LineBorder;


public class Plugin2DServeurPanel extends JPanel {

	/**
	 * Create the panel
	 */
	public Plugin2DServeurPanel() {
		super();
		setLayout(new BorderLayout());

		final JPanel panel = new JPanel();
		panel.setLayout(new BorderLayout());
		add(panel);

		final JPanel panel_2 = new JPanel();
		panel_2.setLayout(new BorderLayout());
		panel.add(panel_2);

		final JTabbedPane tabbedPane = new JTabbedPane();
		panel_2.add(tabbedPane);

		final JPanel panel_3 = new JPanel();
		tabbedPane.addTab("ggg", null, panel_3, null);

		final JPanel panel_4 = new JPanel();
		tabbedPane.addTab("hhh", null, panel_4, null);

		final JPanel panel_1 = new JPanel();
		panel_1.setBackground(Color.GREEN);
		panel.add(panel_1, BorderLayout.NORTH);

		final JLabel label = new JLabel();
		label.addMouseListener(new MouseAdapter() {
			public void mouseClicked(MouseEvent arg0) {
				tabbedPane.add("toto", new JPanel()) ;
			
			}
		});
		label.setFont(new Font("Sans", Font.BOLD, 12));
		label.setBorder(new LineBorder(Color.LIGHT_GRAY, 1, false));
		label.setBackground(UIManager.getColor("Menu.selectionBackground"));
		panel_1.add(label);
		label.setText("Plugin pour résoudre la 2D");
		//
	}

}
